import request from '@/utils/request'

// 查询服务项目活动列表
export function listProboxServiceActivity(query) {
    return request({
        url: '/prod-api/proBoxService/activity/list',
        method: 'get',
        params: query
    })
}
//根据商品id进行查询
export function listByShopId(query) {
    return request({
        url: '/prod-api/proBoxService/activity/listByShopId',
        method: 'get',
        params: query
    })
}



// 查询服务项目活动详细
export function getActivityVoById(acitivityId) {
    return request({
        url: '/prod-api/proBoxService/activity/getActivityVoById/' + acitivityId,
        method: 'get'
    })
}

// 新增服务项目活动
export function addActivity(data) {
    return request({
        url: '/prod-api/proBoxService/activity/add',
        method: 'post',
        data: data
    })
}

// 修改服务项目活动
export function editActivity(data) {
    return request({
        url: '/prod-api/proBoxService/activity/update',
        method: 'put',
        data: data
    })
}

// 删除服务项目活动
export function delActivity(acitivityIds) {
    return request({
        url: '/prod-api/proBoxService/activity/del/' + acitivityIds,
        method: 'put'
    })
}


// 修改服务项目活动状态
export function updateActivityStatus(data) {
    return request({
        url: '/prod-api/proBoxService/activity/updateStatus',
        method: 'put',
        data: data
    })
}
